package com.keensense.vcm.model;

import com.keensense.vcm.model.enums.StaticLibraryTypeEnum;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * @author lanjian
 * @date 2020/7/28
 */
@XmlRootElement(name = "response")
public class ListStaticLibrariesResponse extends BaseResponse {


    private Integer total;

    private List<StaticLibrary> staticLibraries;


    @XmlElement
    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    @XmlElementWrapper(name = "staticLibraries")
    @XmlElement(name = "staticLibrary")
    public List<StaticLibrary> getStaticLibraries() {
        return staticLibraries;
    }

    public void setStaticLibraries(List<StaticLibrary> staticLibraries) {
        this.staticLibraries = staticLibraries;
    }

    public static class StaticLibrary {

        private String id;

        /**
         * 名称
         */
        private String name;


        private StaticLibraryTypeEnum type;

        private String description;

        private Integer total;

        private String tag;

        private String areaCode;

        /**
         * 静态库容量大小(integer32)
         */
        private Integer capacity;

        @XmlElement
        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        @XmlElement
        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @XmlElement
        public StaticLibraryTypeEnum getType() {
            return type;
        }

        public void setType(StaticLibraryTypeEnum type) {
            this.type = type;
        }

        @XmlElement
        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        @XmlElement
        public Integer getTotal() {
            return total;
        }

        public void setTotal(Integer total) {
            this.total = total;
        }

        @XmlElement
        public String getTag() {
            return tag;
        }

        public void setTag(String tag) {
            this.tag = tag;
        }

        @XmlElement
        public String getAreaCode() {
            return areaCode;
        }

        public void setAreaCode(String areaCode) {
            this.areaCode = areaCode;
        }

        @XmlElement
        public Integer getCapacity() {
            return capacity;
        }

        public void setCapacity(Integer capacity) {
            this.capacity = capacity;
        }
    }

}
